home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 2000 October
/
Software of the Month - Ultimate Collection Shareware 277.iso
/
pc
/
PROGRAMS
/
UTILITY
/
WINLINUX
/
DATA1.CAB
/
programs_-_include
/
ASM-ARM
/
ARCH-ARC
/
SYSTEM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1999-09-17
|
802b
|
48 lines
/*
* linux/include/asm-arm/arch-arc/system.h
*
* Copyright (c) 1996 Russell King and Dave Gilbert
*/
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
#include <linux/config.h>
#ifdef CONFIG_ARCH_ARC
#define cliIF() \
do { \
unsigned long temp; \
__asm__ __volatile__( \
" mov %0, pc\n" \
" orr %0, %0, #0x0c000000\n" \
" teqp %0, #0\n" \
: "=r" (temp) \
: ); \
} while(0)
#endif
extern __inline__ void arch_reset(char mode)
{
extern void ecard_reset(int card);
/*
* Do any cleanups that the processor may require
*/
processor._proc_fin();
/*
* Reset all expansion cards.
*/
ecard_reset(-1);
/*
* copy branch instruction to reset location and call it
*/
*(unsigned long *)0 = *(unsigned long *)0x03800000;
((void(*)(void))0)();
}
#endif